﻿<?xml version="1.0" encoding="utf-8"?>
<edmx:Edmx Version="2.0" xmlns:edmx="http://schemas.microsoft.com/ado/2008/10/edmx">
  <!-- From efxaf.codeplex.com -->
  <!-- EF Runtime content -->
  <edmx:Runtime>
    <!-- SSDL content -->
    <edmx:StorageModels>
      <Schema xmlns="http://schemas.microsoft.com/ado/2009/02/edm/ssdl" Namespace="BusinessModel.Store" Alias="Self" Provider="System.Data.SqlClient" ProviderManifestToken="2005">
        <EntityContainer Name="BusinessModelTargetContainer">
        </EntityContainer>
      </Schema>
    </edmx:StorageModels>
    <!-- CSDL content -->
    <edmx:ConceptualModels>
      <Schema xmlns="http://schemas.microsoft.com/ado/2008/09/edm" xmlns:cg="http://schemas.microsoft.com/ado/2006/04/codegeneration" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" Namespace="BusinessModel" Alias="Self" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation">
        <EntityContainer Name="BusinessModelContainer" annotation:LazyLoadingEnabled="true">
          <EntitySet Name="Customers" EntityType="BusinessModel.Customer" />
          <EntitySet Name="Products" EntityType="BusinessModel.Product" />
          <EntitySet Name="Orders" EntityType="BusinessModel.Order" />
          <EntitySet Name="OrderDetails" EntityType="BusinessModel.OrderDetail" />
          <AssociationSet Name="CustomerOrder" Association="BusinessModel.CustomerOrder">
            <End Role="Customer" EntitySet="Customers" />
            <End Role="Order" EntitySet="Orders" />
          </AssociationSet>
          <AssociationSet Name="OrderOrderDetail" Association="BusinessModel.OrderOrderDetail">
            <End Role="Order" EntitySet="Orders" />
            <End Role="OrderDetail" EntitySet="OrderDetails" />
          </AssociationSet>
          <AssociationSet Name="ProductOrderDetail" Association="BusinessModel.ProductOrderDetail">
            <End Role="Product" EntitySet="Products" />
            <End Role="OrderDetail" EntitySet="OrderDetails" />
          </AssociationSet>
        </EntityContainer>
        <EntityType Name="Customer">
          <Key>
            <PropertyRef Name="Id" />
          </Key>
          <Property Type="Int32" Name="Id" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Type="String" Name="FirstName" Nullable="false">
            <a:BaseCustomAttribute-Size a:PropertyName="Size" a:PropertyType="System.Int32" a:PropertyFormat="[Size({value})]" xmlns:a="http://schemas.liekhus.com/entityframework/xaf/customattributes">25</a:BaseCustomAttribute-Size>
          </Property>
          <Property Type="String" Name="LastName" Nullable="false">
            <a:BaseCustomAttribute-Size a:PropertyName="Size" a:PropertyType="System.Int32" a:PropertyFormat="[Size({value})]" xmlns:a="http://schemas.liekhus.com/entityframework/xaf/customattributes">25</a:BaseCustomAttribute-Size>
            <a:BaseCustomAttribute-RuleRequiredField a:PropertyName="RuleRequiredField" a:PropertyType="System.String" a:PropertyFormat="[RuleRequiredField(&quot;{entity}_{property}_RuleRequiredField&quot;, DefaultContexts.Save, &quot;{value}&quot;)]" xmlns:a="http://schemas.liekhus.com/entityframework/xaf/customattributes">Last name is required.</a:BaseCustomAttribute-RuleRequiredField>
          </Property>
          <NavigationProperty Name="Orders" Relationship="BusinessModel.CustomerOrder" FromRole="Customer" ToRole="Order" />
          <Property Type="String" Name="FullName" Nullable="false">
            <a:BaseCustomAttribute-Size a:PropertyName="Size" a:PropertyType="System.Int32" a:PropertyFormat="[Size({value})]" xmlns:a="http://schemas.liekhus.com/entityframework/xaf/customattributes">50</a:BaseCustomAttribute-Size>
            <a:BaseCustomAttribute-PersistentAlias a:PropertyName="PersistentAlias" a:PropertyType="System.String" a:PropertyFormat="[PersistentAlias(&quot;{value}&quot;)]" xmlns:a="http://schemas.liekhus.com/entityframework/xaf/customattributes">FirstName + ' ' + LastName</a:BaseCustomAttribute-PersistentAlias>
          </Property>
          <a:BaseCustomAttribute-ImageName a:PropertyName="ImageName" a:PropertyType="System.String" a:PropertyFormat="[ImageName(&quot;{value}&quot;)]" xmlns:a="http://schemas.liekhus.com/entityframework/xaf/customattributes">BO_Unknown</a:BaseCustomAttribute-ImageName>
          <a:BaseCustomAttribute-IsCreatable a:PropertyName="IsCreatable" a:PropertyType="System.Boolean" a:PropertyFormat="[CreatableItem({value})]" xmlns:a="http://schemas.liekhus.com/entityframework/xaf/customattributes">true</a:BaseCustomAttribute-IsCreatable>
          <a:BaseCustomAttribute-IsNavigational a:PropertyName="IsNavigational" a:PropertyType="System.Boolean" a:PropertyFormat="[NavigationItem({value})]" xmlns:a="http://schemas.liekhus.com/entityframework/xaf/customattributes">true</a:BaseCustomAttribute-IsNavigational>
          <a:BaseCustomAttribute-UseDefaultOptions a:PropertyName="UseDefaultOptions" a:PropertyType="System.Boolean" a:PropertyFormat="[DefaultListViewOptions()]" xmlns:a="http://schemas.liekhus.com/entityframework/xaf/customattributes">true</a:BaseCustomAttribute-UseDefaultOptions>
        </EntityType>
        <EntityType Name="Product">
          <Key>
            <PropertyRef Name="Id" />
          </Key>
          <Property Type="Int32" Name="Id" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Type="String" Name="Name" Nullable="false">
            <a:BaseCustomAttribute-Size a:PropertyName="Size" a:PropertyType="System.Int32" a:PropertyFormat="[Size({value})]" xmlns:a="http://schemas.liekhus.com/entityframework/xaf/customattributes">50</a:BaseCustomAttribute-Size>
            <a:BaseCustomAttribute-RuleRequiredField a:PropertyName="RuleRequiredField" a:PropertyType="System.String" a:PropertyFormat="[RuleRequiredField(&quot;{entity}_{property}_RuleRequiredField&quot;, DefaultContexts.Save, &quot;{value}&quot;)]" xmlns:a="http://schemas.liekhus.com/entityframework/xaf/customattributes">Product name is required.</a:BaseCustomAttribute-RuleRequiredField>
            <a:BaseCustomAttribute-RuleUniqueMessage a:PropertyName="RuleUniqueMessage" a:PropertyType="System.String" a:PropertyFormat="[RuleUniqueValue(&quot;{entity}_{property}_RuleUniqueValue&quot;, DefaultContexts.Save, &quot;{value}&quot;)]" xmlns:a="http://schemas.liekhus.com/entityframework/xaf/customattributes">Product name nust be unique.</a:BaseCustomAttribute-RuleUniqueMessage>
          </Property>
          <NavigationProperty Name="OrderDetails" Relationship="BusinessModel.ProductOrderDetail" FromRole="Product" ToRole="OrderDetail" />
          <a:BaseCustomAttribute-ImageName a:PropertyName="ImageName" a:PropertyType="System.String" a:PropertyFormat="[ImageName(&quot;{value}&quot;)]" xmlns:a="http://schemas.liekhus.com/entityframework/xaf/customattributes">BO_Unknown</a:BaseCustomAttribute-ImageName>
          <a:BaseCustomAttribute-IsCreatable a:PropertyName="IsCreatable" a:PropertyType="System.Boolean" a:PropertyFormat="[CreatableItem({value})]" xmlns:a="http://schemas.liekhus.com/entityframework/xaf/customattributes">true</a:BaseCustomAttribute-IsCreatable>
          <a:BaseCustomAttribute-IsNavigational a:PropertyName="IsNavigational" a:PropertyType="System.Boolean" a:PropertyFormat="[NavigationItem({value})]" xmlns:a="http://schemas.liekhus.com/entityframework/xaf/customattributes">true</a:BaseCustomAttribute-IsNavigational>
          <a:BaseCustomAttribute-UseDefaultOptions a:PropertyName="UseDefaultOptions" a:PropertyType="System.Boolean" a:PropertyFormat="[DefaultListViewOptions()]" xmlns:a="http://schemas.liekhus.com/entityframework/xaf/customattributes">true</a:BaseCustomAttribute-UseDefaultOptions>
        </EntityType>
        <EntityType Name="Order">
          <Key>
            <PropertyRef Name="Id" />
          </Key>
          <Property Type="Int32" Name="Id" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Type="DateTime" Name="OrderDate" Nullable="false">
            <a:BaseCustomAttribute-Size a:PropertyName="Size" a:PropertyType="System.Int32" a:PropertyFormat="[Size({value})]" xmlns:a="http://schemas.liekhus.com/entityframework/xaf/customattributes">50</a:BaseCustomAttribute-Size>
            <a:BaseCustomAttribute-RuleRequiredField a:PropertyName="RuleRequiredField" a:PropertyType="System.String" a:PropertyFormat="[RuleRequiredField(&quot;{entity}_{property}_RuleRequiredField&quot;, DefaultContexts.Save, &quot;{value}&quot;)]" xmlns:a="http://schemas.liekhus.com/entityframework/xaf/customattributes">Order date is required.</a:BaseCustomAttribute-RuleRequiredField>
          </Property>
          <NavigationProperty Name="Customer" Relationship="BusinessModel.CustomerOrder" FromRole="Order" ToRole="Customer" />
          <NavigationProperty Name="OrderDetails" Relationship="BusinessModel.OrderOrderDetail" FromRole="Order" ToRole="OrderDetail" />
          <a:BaseCustomAttribute-ImageName a:PropertyName="ImageName" a:PropertyType="System.String" a:PropertyFormat="[ImageName(&quot;{value}&quot;)]" xmlns:a="http://schemas.liekhus.com/entityframework/xaf/customattributes">BO_Unknown</a:BaseCustomAttribute-ImageName>
          <a:BaseCustomAttribute-IsCreatable a:PropertyName="IsCreatable" a:PropertyType="System.Boolean" a:PropertyFormat="[CreatableItem({value})]" xmlns:a="http://schemas.liekhus.com/entityframework/xaf/customattributes">true</a:BaseCustomAttribute-IsCreatable>
          <a:BaseCustomAttribute-IsNavigational a:PropertyName="IsNavigational" a:PropertyType="System.Boolean" a:PropertyFormat="[NavigationItem({value})]" xmlns:a="http://schemas.liekhus.com/entityframework/xaf/customattributes">true</a:BaseCustomAttribute-IsNavigational>
          <a:BaseCustomAttribute-UseDefaultOptions a:PropertyName="UseDefaultOptions" a:PropertyType="System.Boolean" a:PropertyFormat="[DefaultListViewOptions()]" xmlns:a="http://schemas.liekhus.com/entityframework/xaf/customattributes">true</a:BaseCustomAttribute-UseDefaultOptions>
        </EntityType>
        <EntityType Name="OrderDetail">
          <Property Type="Int16" Name="Quantity" Nullable="false">
            <a:BaseCustomAttribute-Size a:PropertyName="Size" a:PropertyType="System.Int32" a:PropertyFormat="[Size({value})]" xmlns:a="http://schemas.liekhus.com/entityframework/xaf/customattributes">50</a:BaseCustomAttribute-Size>
          </Property>
          <NavigationProperty Name="Order" Relationship="BusinessModel.OrderOrderDetail" FromRole="OrderDetail" ToRole="Order" />
          <NavigationProperty Name="Product" Relationship="BusinessModel.ProductOrderDetail" FromRole="OrderDetail" ToRole="Product" />
          <a:BaseCustomAttribute-ImageName a:PropertyName="ImageName" a:PropertyType="System.String" a:PropertyFormat="[ImageName(&quot;{value}&quot;)]" xmlns:a="http://schemas.liekhus.com/entityframework/xaf/customattributes">BO_Unknown</a:BaseCustomAttribute-ImageName>
          <a:BaseCustomAttribute-IsCreatable a:PropertyName="IsCreatable" a:PropertyType="System.Boolean" a:PropertyFormat="[CreatableItem({value})]" xmlns:a="http://schemas.liekhus.com/entityframework/xaf/customattributes">true</a:BaseCustomAttribute-IsCreatable>
          <a:BaseCustomAttribute-IsNavigational a:PropertyName="IsNavigational" a:PropertyType="System.Boolean" a:PropertyFormat="[NavigationItem({value})]" xmlns:a="http://schemas.liekhus.com/entityframework/xaf/customattributes">true</a:BaseCustomAttribute-IsNavigational>
          <a:BaseCustomAttribute-UseDefaultOptions a:PropertyName="UseDefaultOptions" a:PropertyType="System.Boolean" a:PropertyFormat="[DefaultListViewOptions()]" xmlns:a="http://schemas.liekhus.com/entityframework/xaf/customattributes">true</a:BaseCustomAttribute-UseDefaultOptions>
        </EntityType>
        <Association Name="CustomerOrder">
          <End Type="BusinessModel.Customer" Role="Customer" Multiplicity="1" />
          <End Type="BusinessModel.Order" Role="Order" Multiplicity="*" />
          <a:BaseCustomAttribute-IsAggregated a:PropertyName="IsAggregated" a:PropertyType="System.Boolean" a:PropertyFormat="[Aggregated]" xmlns:a="http://schemas.liekhus.com/entityframework/xaf/customattributes">false</a:BaseCustomAttribute-IsAggregated>
        </Association>
        <Association Name="OrderOrderDetail">
          <End Type="BusinessModel.Order" Role="Order" Multiplicity="1" />
          <End Type="BusinessModel.OrderDetail" Role="OrderDetail" Multiplicity="*" />
          <a:BaseCustomAttribute-IsAggregated a:PropertyName="IsAggregated" a:PropertyType="System.Boolean" a:PropertyFormat="[Aggregated]" xmlns:a="http://schemas.liekhus.com/entityframework/xaf/customattributes">false</a:BaseCustomAttribute-IsAggregated>
        </Association>
        <Association Name="ProductOrderDetail">
          <End Type="BusinessModel.Product" Role="Product" Multiplicity="1" />
          <End Type="BusinessModel.OrderDetail" Role="OrderDetail" Multiplicity="*" />
          <a:BaseCustomAttribute-IsAggregated a:PropertyName="IsAggregated" a:PropertyType="System.Boolean" a:PropertyFormat="[Aggregated]" xmlns:a="http://schemas.liekhus.com/entityframework/xaf/customattributes">false</a:BaseCustomAttribute-IsAggregated>
        </Association>
      </Schema>
    </edmx:ConceptualModels>
    <!-- C-S mapping content -->
    <edmx:Mappings>
      <Mapping xmlns="http://schemas.microsoft.com/ado/2008/09/mapping/cs" Space="C-S">
        <Alias Key="Model" Value="BusinessModel" />
        <Alias Key="Target" Value="BusinessModel.Store" />
        <EntityContainerMapping CdmEntityContainer="BusinessModelContainer" StorageEntityContainer="BusinessModelTargetContainer">
        </EntityContainerMapping>
      </Mapping>
    </edmx:Mappings>
  </edmx:Runtime>
  <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
  <Designer xmlns="http://schemas.microsoft.com/ado/2008/10/edmx">
    <Connection>
      <DesignerInfoPropertySet>
        <DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
      </DesignerInfoPropertySet>
    </Connection>
    <Options>
      <DesignerInfoPropertySet>
        <DesignerProperty Name="ValidateOnBuild" Value="true" />
        <DesignerProperty Name="EnablePluralization" Value="True" />
        <DesignerProperty Name="CodeGenerationStrategy" Value="None" />
      </DesignerInfoPropertySet>
    </Options>
    <!-- Diagram content (shape and connector positions) -->
    <Diagrams>
      <Diagram Name="BusinessModel">
        <EntityTypeShape EntityType="BusinessModel.Customer" Width="1.5" PointX="0.75" PointY="0.875" Height="1.9802864583333339" />
        <EntityTypeShape EntityType="BusinessModel.Product" Width="1.5" PointX="3" PointY="4" Height="1.5956835937499996" />
        <EntityTypeShape EntityType="BusinessModel.Order" Width="1.5" PointX="3" PointY="0.875" Height="1.7879850260416657" />
        <EntityTypeShape EntityType="BusinessModel.OrderDetail" Width="1.5" PointX="5.25" PointY="0.875" Height="1.59568359375" />
        <AssociationConnector Association="BusinessModel.CustomerOrder">
          <ConnectorPoint PointX="2.25" PointY="1.7689925130208328" />
          <ConnectorPoint PointX="3" PointY="1.7689925130208328" />
        </AssociationConnector>
        <AssociationConnector Association="BusinessModel.OrderOrderDetail">
          <ConnectorPoint PointX="4.5" PointY="1.6728417968750002" />
          <ConnectorPoint PointX="5.25" PointY="1.6728417968750002" />
        </AssociationConnector>
        <AssociationConnector Association="BusinessModel.ProductOrderDetail">
          <ConnectorPoint PointX="4.5" PointY="4.797841796875" />
          <ConnectorPoint PointX="6" PointY="4.797841796875" />
          <ConnectorPoint PointX="6" PointY="2.47068359375" />
        </AssociationConnector>
      </Diagram>
    </Diagrams>
  </Designer>
</edmx:Edmx>
